﻿@{
    Layout = "~/Views/Shared/_ShopLayout.cshtml";
}
@using MvcMall.Portal.Controllers.Extensions;
@using MvcMall.Portal.Controllers.Shop.ViewModels;
<script src="@Url.Content("~/Scripts/common.js")" type="text/javascript"></script>
<div class="shop_right">
    <!--商品介绍开始-->
    <div class="shop_products_title">
        <span class="shop_products_title_text">@ViewData["GoodsName"]</span>
    </div>
    <table style="margin-top: 20px;" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td width="320" valign="top">
                <img width="300" src="/Content/images/img3.jpg" />
            </td>
            <td valign="top">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr height="30">
                        <td class="products_tab_td1">
                            售&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;价：
                        </td>
                        <td class="products_tab_td2">
                            ￥&nbsp;<span class="products_price">@ViewData["GoodsPrice"]</span>&nbsp;元<span class="shop_products_title_heart">
                                (&nbsp;<img align="absMiddle" src="/Content/images/heart.gif" />&nbsp;@Html.ActionLink("收藏该商品", "FavoritesGoods", "Users", new { @Id = ViewData["GoodsId"] }, null)</a>&nbsp;)</span>
                        </td>
                    </tr>
                    <tr height="30">
                        <td class="products_tab_td1">
                            运&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;费：
                        </td>
                        <td class="products_tab_td2">
                            <span class="red">@ViewData["LogisticsFee"]</span>元(平邮) <span class="red">@ViewData["ExpressFee"]</span>元(快递)
                            @if (Convert.ToInt32(ViewData["EMSFee"]) > 0)
                            { 
                                <text> <span class="red">@ViewData["EMSFee"]</span>元(EMS)</text>
                                                                               
                            }
                        </td>
                    </tr>
                    <tr height="30">
                        <td class="products_tab_td1">
                            新旧程度：
                        </td>
                        <td class="products_tab_td2">
                            @ViewData["GoodsType"]
                        </td>
                    </tr>
                    <tr height="30">
                        <td class="products_tab_td1">
                            所&nbsp;&nbsp;在&nbsp;&nbsp;地：
                        </td>
                        <td class="products_tab_td2">
                            @ViewData["City"]
                        </td>
                    </tr>
                    @if (ViewData["SpecialDict"] != null)
                    {
                        <tr>
                            <td bgcolor="#f0f0f0" style="padding: 10px 10px 0 10px;" colspan="2">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr height="30">
                                        <td colspan="2">
                                            <div class="tips">
                                                <img align="absMiddle" src="/Content/images/lightbulb.gif" />&nbsp;<span class="red">温馨提示：</span>请选择规格</div>
                                        </td>
                                    </tr>
                                    @foreach (var item in ViewData["SpecialDict"] as Dictionary<string, List<string>>)
                                    {
                                        <tr>
                                            <td style="width: 70px">
                                                @item.Key：
                                            </td>
                                            <td style="text-align: left;">
                                                <ul class="products_tag">
                                                    @foreach (var child in item.Value)
                                                    {
                                                        <li>@child</li>                                              
                                                    }
                                                </ul>
                                            </td>
                                        </tr>
                                    }
                                </table>
                            </td>
                        </tr>
                    }
                    <tr height="30">
                        <td class="products_tab_td1">
                            购买数量：
                        </td>
                        <td class="products_tab_td2">
                            <input class="tab_input" style="width: 50px;" name="" type="text" />&nbsp;件（剩余<span
                                id="goodsNumber" name="goodsNumber" class="red">@ViewData["GoodsNumber"]</span>件）
                        </td>
                    </tr>
                    <tr height="60">
                        <td align="center" colspan="2">
                            <img src="/Content/images/btn10.gif" />&nbsp;&nbsp;&nbsp;&nbsp;
                            <img src="/Content/images/btn11.gif" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <!--商品介绍结束-->
    <!--商品卡片开始-->
    <div id="con">
        <ul id="tags">
            <li class="selectTag"><a onclick="selectTag('tagContent0',this)" href="javascript:void(0)">
                商品详情</a> </li>
            <li><a onclick="selectTag('tagContent1',this)" href="javascript:void(0)">购买流程</a>
            </li>
            <li><a onclick="selectTag('tagContent2',this)" href="javascript:void(0)">近期销量</a>
            </li>
            <li><a onclick="selectTag('tagContent3',this)" href="javascript:void(0)">留言板</a>
            </li>
        </ul>
        <div id="tagContent">
            <div class="tagContent selectTag" id="tagContent0">
                @if (ViewData["AttrValues"] != null)
                {
                    <div style="padding: 20px; display: inline-block; background-color: #f0f0f0; border: solid 1px #aaaaaa;">
                        <ul style="float: left; display: inline-block;">
                            @foreach (var item in ViewData["AttrValues"] as Dictionary<string, string>)
                            {
                                <li style="width: 33%; line-height: 30px; float: left; display: block; list-style: none;">@item.Key：@item.Value</li>
                            }
                        </ul>
                    </div>
                }
                @MvcHtmlString.Create(ViewData["GoodsDesc"].ToString())
            </div>
            <div class="tagContent" id="tagContent1">
                <div style="text-align: center; margin-top: 20px;">
                    <img src="/Content/images/img4.gif" /></div>
            </div>
            <div class="tagContent" id="tagContent2">
                第三个标签的内容</div>
            <div class="tagContent" id="tagContent3">
                第四个标签的内容</div>
        </div>
    </div>
    <!--商品卡片结束-->
    <!--推荐商品开始-->
    <div class="shop_box_title">
        <span class="more">@Html.ActionLink("更多>>", "GoodsSearch", "Shop", new { @StoreId = ViewBag.StoreId, @isPromoted = "true" }, null)</span>推荐商品</div>
    <div class="shop_box">
        @foreach (var item in ViewData["promotedList"] as List<GoodsTableModel>)
        {
            @Html.StandardGoodsInfo(item)
        }
    </div>
    <div class="tagDiv">
    </div>
    <!--推荐商品结束-->
</div>
